﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>回收站</title>
    <link href="${pageContext.request.contextPath}/css/themes/default/easyui.css" rel="stylesheet" />
	<link href="${pageContext.request.contextPath}/css/themes/icon.css" rel="stylesheet"></link>
    <link href="${pageContext.request.contextPath}/css/themes/color.css" rel="stylesheet" />
    <script src="${pageContext.request.contextPath}/script/jquery.min.js"></script>
    <script src="${pageContext.request.contextPath}/script/jquery.easyui.min.js"></script>
    <script src="${pageContext.request.contextPath}/script/wen.js"></script>
    <script src="${pageContext.request.contextPath}/script/easyui-lang-zh_CN.js"></script>
    <style>
        body {
            font-size: 12px;
            overflow-y: hidden;
        }
         th {
         	font-size: 20px;
         } 
         td {
         	font-size: 18px;
         }  
         .datagrid-header .datagrid-cell span {
		    font-size: 15px;
    		font-weight: 800;
		}
		.datagrid-cell{
   			 font-size: 18px;
   			 font-weight: 500;
		}

    </style>
</head>
<body class="easyui-layout" onload="initContent()">
<div data-options="region:'center'">
<div class="easyui-tabs" data-options="fit:true">
<div title="回收站" style="padding:10px;">
	
    <table class="easyui-datagrid" style="width:auto; height: 100%; padding:5px" id="table">
    	 <thead>
    		<tr>
				<!-- <th data-options="field:'id'" width="2%" align="center">ID</th> -->
				<th data-options="field:'sqr'" width="5%" align="center">申请人</th>
				<th data-options="field:'sqrsj'" width="11%" align="center">申请人手机</th>
				<th data-options="field:'sjr'" width="5%" align="center">收件人</th>
				<th data-options="field:'sjrsj'" width="11%" align="center">收件人手机</th>
				<th data-options="field:'kdqy'" width="11%" align="center">快递区域</th>
				<th data-options="field:'yjdz'" width="18%" align="center">邮寄地址</th>
				<th data-options="field:'yb'" width="6%" align="center">邮编</th>
				<th data-options="field:'kdgs'" width="6%" align="center">快递公司</th>
				<th data-options="field:'dh'" width="7%" align="center">单号</th>
				<th data-options="field:'kdlx'" width="6%" align="center">快递类型</th>
				<th data-options="field:'sp'" width="6%" align="center">审批</th>
				<th data-options="field:'sqsj'" width="9%" align="center">申请时间</th>
			</tr>
		</thead> 
    </table> 
</div>
</div>
</div>
	
	<script>
	
    	 $(function(){
    		$.ajax({
    			url:"${pageContext.request.contextPath}/admin/adminlistexpresshsz",
    			type:"GET",
    			dataType:"json",
    			success:function(data){
    			//alert("ok");
    			for(var i = 0;i<data.length;i++){
  					var obj=data[i];
  					var id=obj.id;
  					var sqr=obj.sqr;
  					var sqrsj=obj.sqrsj;
  					var sjr=obj.sjr;
  					var sjrsj=obj.sjrsj;
  					var kdqy=obj.kdqy;
  					var yjdz=obj.yjdz;
  					var yb=obj.yb;
  					var kdgs=obj.kdgs;
  					var dh=obj.dh;
  					var kdlx=obj.kdlx;
  					var sp=obj.sp;
  					var sqsj=obj.sqsj;
  					$("#table").datagrid("appendRow",{
  						"id":id,
  						"sqr":sqr,
  						"sqrsj":sqrsj,
  						"sjr":sjr,
  						"sjrsj":sjrsj,
  						"kdqy":kdqy,
  						"yjdz":yjdz,
  						"yb":yb,
  						"kdgs":kdgs,
  						"dh":dh,
  						"kdlx":kdlx,
  						"sp":sp,
  						"sqsj":sqsj
  					});
    			}		
    			},
    			error:function(){
    				alert("error");
    			}
    		});
    	}); 
    	
    	
    	 /* $(function(){
    $('#table').datagrid({
        url:"${pageContext.request.contextPath}/admin/adminlistexpresss",
        rownumbers:true,
        singleSelect:true,
        idField:'id',
        fitColumns : true,
		singleSelect : true,
		rownumbers : true,
		pagination : true,
        pageSize:5,
        pageList:[5,10,15],
        columns:[[  
            //{field:'id',title:'ID',width:'5%',align:'center'},
            {field:'sqr',title:'申请人',width:'5%',align:'center'},
            {field:'sqrsj',title:'申请人手机',width:'9%',align:'center'},
            {field:'sjr',title:'收件人',width:'5%',align:'center'},
            {field:'sjrsj',title:'收件人手机',width:'9%',align:'center'},
            {field:'kdqy',title:'快递区域',width:'10%',align:'center'},
            {field:'yjdz',title:'邮寄地址',width:'16%',align:'center'},
            {field:'yb',title:'邮编',width:'5%',align:'center'},
            {field:'kdgs',title:'快递公司',width:'6%',align:'center'},
            {field:'dh',title:'单号',width:'6%',align:'center'},
            {field:'kdlx',title:'快递类型',width:'6%',align:'center'},
            {field:'sqsj',title:'揽件时间',width:'8%',align:'center'},
            {field:'sp',title:'*审批*',width:'6%',align:'center'},      
            
            {field:'cz',title:'操作',width:'8%',align:'center',
            formatter : function(value, row, index) {
				  var str = '<a href="javascript:del('+row.id+')" name="opera" class="easyui-linkbutton" ><img src="${pageContext.request.contextPath}/images/del.png" class="masterTooltip" title="点击删除订单"/></a>'
				  			+ '||'+ 
				  			'<a href="javascript:hsz('+row.id+')" name="opera" class="easyui-linkbutton"><img src="${pageContext.request.contextPath}/images/del.png" class="masterTooltip" title="点击放进回收站"/></a>'
				  			; 
				return str;
			}
            },
        ]]
    });
});  */
	</script>
</body>
</html>
